<!DOCTYPE html>
<html >
	<head>
		<meta charset="utf-8" />
		<script type="text/javascript" src="../js/angular.js" ></script>
		<title></title>
	</head>
	<body ng-app="app" >
		<div ng-controller="ctrl" >
			<select ng-options="v.value as v.name for v in data" ng-model="city"	>
				<option value="">请选择城市</option>
			</select>
			{{city}}
		</div>
		<script>
			var app=angular.module("app",[]);
			app.controller("ctrl",["$scope",function($scope){
				$scope.city=3;
				$scope.data=[
					{name:"南宁",value:1},
					{name:"钦州",value:2},
					{name:"北海",value:3}
				];
			}]);
			
		</script>
	</body>
</html>
